package com.chixing.day03_oop;

public class CompanyTest {
    public static void main(String[] args) {
        //实例化对象1
        Company company1 = new Company();
        company1.setCompanyId(9001);
        System.out.println(company1.getCompanyId());

        company1.setCompanyName("华为");
        System.out.println(company1.getCompanyName());

        company1.setCompanyType("民营企业");
        System.out.println(company1.getCompanyType());

        company1.setCompanyAddress("苏州桑田岛");
        System.out.println(company1.getCompanyAddress());


        company1.setCompanyTelno(15246892354L);
        System.out.println(company1.getCompanyTelno());



        company1.publishJob();
        company1.getResume();


//        company1.companyId = 9001;
//        company1.companyName = "华为";
//        company1.companyAddress = "苏州桑田岛";
//        company1.companyType = "民营企业";
//        company1.companyTelno = 15246892354L ;






         //实例化对象2
//        Company company2 = new Company();
//        company2.companyId = 9002;
//        company2.companyName = "小米";
//        company2.companyAddress = "苏州骑河";
//        company2.companyType = "国营企业";
//        company2.companyTelno = 17771455560L ;
//        company2.publishJob();
//        company2.getResume();


        //实例化对象1
        Job job1=new Job();
        job1.JobId = 01;
        job1.JobName ="JAVA工程师";
        job1.JobMinSalary = 4500;
        job1.JobMaxSalary = 12000;
        job1.JobDegree="本科及以上";
        job1.JobCity = "上海";
        job1.company = company1;

        //实例化对象2
        Job job2=new Job();
        job2.JobId = 02;
        job2.JobName ="Web工程师";
        job2.JobMinSalary = 5500;
        job2.JobMaxSalary = 10000;
        job2.JobDegree ="大专及以上";
        job2.JobCity = "苏州";
//        job1.company = company2;

        int a=10;
        int b=20;
        add(a,b);      //实参 arguments / args


    }
    public static int add(int x ,int y){    //形参 parameter / param 【局部变量，临时变量】
        x=11;
        y=22;
        return 0;
    }
}
